/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using VOL.Entity.SystemModels;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "test2019")]
    public class test2019 : BaseEntity
    {
        /// <summary>
        ///测试Id
        /// </summary>
        [Key]
        [Display(Name = "测试Id")]
        [Column(TypeName = "int")]
        [Required(AllowEmptyStrings = false)]
        public int id { get; set; }

        /// <summary>
        ///测试1
        /// </summary>
        [Display(Name = "测试1")]
        [MaxLength(10)]
        [Column(TypeName = "nvarchar(10)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string testUtf8 { get; set; }

        /// <summary>
        ///测试2
        /// </summary>
        [Display(Name = "测试2")]
        [MaxLength(12)]
        [Column(TypeName = "nvarchar(12)")]
        [Editable(true)]
        public string testmb4 { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "y")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? y { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "timepsan")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? timepsan { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "text")]
        [MaxLength(65535)]
        [Column(TypeName = "nvarchar(65535)")]
        [Editable(true)]
        public string text { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "db")]
        [DisplayFormat(DataFormatString = "4,3")]
        [Column(TypeName = "decimal")]
        [Editable(true)]
        public decimal? db { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "tt")]
        [MaxLength(1)]
        [Column(TypeName = "nvarchar(1)")]
        [Editable(true)]
        public string tt { get; set; }


    }
}